package com.qf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @TableId
    private Integer id;
    private String username;
    private String password;
    private Integer sex;
    private Integer age;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @TableField(fill = FieldFill.INSERT)
    private Integer status;
    private Integer createUser;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Integer updateUser;
    private Date updateTime;



}
